namespace UnitTesting.Fixturing
{
	class CurrentActivator : IActivator
	{
		static readonly object _lock = new object();

		public object Create(ActivatorParams activatorParams)
		{
			var activator = ActivatorManager.Current;
			lock (_lock)
			{
				return activator.Create(activatorParams);
			}
		}
	}
}